package Com.amit.Exception;

public class Lab7 {

	public static void main(String[] args) {
		
		try
		{
			int a[]=new int[5];
			a[5]=100/0;
		}
		
		catch (ArithmeticException e) {
			System.out.println("Task1 is completed");
			
		}
		catch (ArrayIndexOutOfBoundsException e) {
			System.out.println("Task2 is completed");
			
		}
		
		catch (Exception e) {
			System.out.println("Task1 is completed");
			
		}
		
		System.out.println("Rest of code");
	}

}
